<template>
    <dropdown-menu :menuItem="menuItems" :menuItemClick="menuItemClick" defaultItem="选择页面类型"></dropdown-menu>
</template>
<script>
    import DropdownMenu from "../../DropdownMenu";
    import {CUST_ROUTER} from "../../../config/stystem-params";
    export default {
        props: {
            getPageType: {
                type: Function,
                default: () => {}
            }
        },
        deta () {
            return {
            }
        },
        computed: {
            //筛选出可供新增多个页面的路由
            menuItems() {
                return CUST_ROUTER;
            }
        },
        methods: {
            
            menuItemClick(item) {
                this.getPageType(item.type);
                // this.$emit("setAddPageType", item.type);
                // this.$store.commit("gw/setAddPageType", item.type);
            }
        },
        components: {
            DropdownMenu
        }
    }
</script>
<style>

</style>

